import request from '@/utils/request'

// 查询商品信息列表
export function listPmsMemberProduct(query, pageReq) {
  return request({
    url: '/pms/pmsMemberProduct/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询商品信息详细
export function getPmsMemberProduct(id) {
  return request({
    url: '/pms/pmsMemberProduct/' + id,
    method: 'get'
  })
}

// 新增商品信息
export function addPmsMemberProduct(data) {
  return request({
    url: '/pms/pmsMemberProduct',
    method: 'post',
    data: data
  })
}

// 修改商品信息
export function updateMemberPmsProduct(data) {
  return request({
    url: '/pms/pmsMemberProduct',
    method: 'put',
    data: data
  })
}

// 删除商品信息
export function delPmsMemberProduct(id) {
  return request({
    url: '/pms/pmsMemberProduct/' + id,
    method: 'delete'
  })
}

// 导出商品信息
export function exportPmsMemberProduct(query) {
  return request({
    url: '/pms/pmsMemberProduct/export',
    method: 'get',
    params: query
  })
}

// 产品入库
export function productStore(id){
  return request({
    url: '/pms/pmsMemberProduct/store/'+id,
    method: 'get',
  })
}
